package com.kyivmohyla.kma2.dao;

import org.springframework.dao.DataAccessException;

import java.util.List;

public interface Dao<T> {

    public T getById(int id) throws DataAccessException;

    public List<T> getAll() throws DataAccessException;

    public void create(T obj) throws DataAccessException;

    public void update(T obj) throws DataAccessException;

    public void delete(T obj) throws DataAccessException;
}
